package com.ptmall.app.bean.event;

import android.support.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @class 通知类
 * @anthor zyy mai:jingmengnihao@163.com
 * @time 2017/3/11 0011 下午 3:06
 * @change time
 * @class describe
 */
public class Notice {
    public static final int REDPACKET_LOST = 0;
    //普通登录
    public static final int LG_LOGIN_SCUESS = 1;

    //@Deprecated
    //设置密码成功
    public static final int LG_REST_SCUESS = 2;
    //电话登录
    public static final int LG_PHONE_SCUESS = 3;
    /**
     * 登录成功
     */
    public static final int LOGIN_EASE_OK = 4;

    /**
     * 环信检测网络异常
     */
    public static final int EM_NETWORK_ERROR = 5;
    /**
     * 环信检测网络连接有问题
     */
    public static final int EM_NETWORK_LINK_ERROR = 6;

    /**
     * 登录失效
     */
    public static final int LOGIN_EASE_INVALID = 7;
    public static final int EM_FORWARD_SUCCESS = 8;

    public static final int EM_GROUP_CREATE_INVITATE = 9;
    public int mType;

    @IntDef({EM_GROUP_CREATE_INVITATE,REDPACKET_LOST, EM_FORWARD_SUCCESS, LG_LOGIN_SCUESS, LG_REST_SCUESS, LG_PHONE_SCUESS, LOGIN_EASE_INVALID, LOGIN_EASE_OK, EM_NETWORK_ERROR, EM_NETWORK_LINK_ERROR})
    @Retention(RetentionPolicy.SOURCE)
    public @interface NoticeType {

    }

    public Notice(@NoticeType int type) {
        mType = type;
    }





}
